package com.mryin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.mryin.pojo.UserPermission;
import com.mryin.mapper.UserPermissionMapper;
import com.mryin.service.UserPermissionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author MRYIN
 * @since 2021-02-25
 */
@Service
public class UserPermissionServiceImpl extends ServiceImpl<UserPermissionMapper, UserPermission> implements UserPermissionService {

    @Autowired
    private UserPermissionMapper userPermissionMapper ;

    @Override
    public List<String> queryPermissionsByUserId(Integer id) {
        return userPermissionMapper.queryPermissionsByUserId(id);
    }
}
